package com.jinke.api.modules.app.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum QuestionStatus {

    PENDING(1, "处理中"),
    CLOSE(2, "已关闭"),
    CANCEL(3, "已取消"),
    ;

    @EnumValue
    private final int value;
    private final String desc;

    QuestionStatus(final int value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @JsonValue
    public int getValue() {
        return this.value;
    }
}